import http from '@/utils/httpRequest'
export default {
  /** 平台查看所有商家    **/
  getShopList (param) {
    return http.get(http.adornUrl('admin/yxt/shop/list'), {
      params: param
    })
  },
  // 店铺修改
  updateShop (data) {
    return http.put(http.adornUrl(`/admin/yxt/shop/updateShop`), data)
  },
  // 设置商家提现比列
  setWithdraw (param) {
    return http.post(http.adornUrl('admin/yxt/shop/setCommissionRate'), param)
  },
  /** 平台查看所有申请记录    **/
  getShopapplyList (param) {
    return http.get(http.adornUrl('admin/shop/shopapply/list'), {
      params: param
    })
  },
  /** 商家分配管理员账号  **/
  saveAssignedAccount (param) {
    return http.post(http.adornUrl('admin/yxt/shop/assignedAccount'), param)
  },
  /** 商家分配管理员账号(修改)  **/
  updateAssignedAccount (param) {
    return http.post(http.adornUrl('admin/yxt/shop/updateUser'), param)
  },
  /** 商家信息详情（id）    **/
  getShopInfo (param) {
    return http.get(http.adornUrl('admin/yxt/shop/info/' + param))
  },
  // 服务订单列表
  getReservationList (param) {
    return http.get(
      http.adornUrl('admin/service/goods/reservation/record/list'),
      {
        params: param
      }
    )
  },
  /** 商家信息详情（id）    **/
  getShopInfoSmall (param) {
    return http.get(http.adornUrl('admin/shop/update/record/info/' + param))
  },
  /** 商家查询管理员主账号（id）    **/
  getShopAdmin (param) {
    return http.get(http.adornUrl('admin/yxt/shop/getShopAdmin/' + param))
  },
  /** 平台审核会员申请商家    **/
  getShopapplyAudit (param) {
    return http.post(http.adornUrl('admin/shop/shopapply/audit'), param)
  },
  /** 平台审核网红申请 **/
  getCelebrityAudit (param) {
    return http.put(http.adornUrl('admin/celebrity/check'), param)
  },

  /** 平台审核会员申请商家    **/
  getShopapplyAuditcs (param) {
    return http.put(http.adornUrl('admin/shop/update/record/audit'), param)
  },
  /** 平台查看申请记录详情（id）    **/
  getShopapplyInfo (param) {
    return http.get(http.adornUrl('admin/shop/shopapply/info/' + param))
  },
  // 获取网红的详情
  getCelebrityDetail (param) {
    return http.get(http.adornUrl('admin/celebrity/info/' + param))
  },
  /** 平台商品列表    **/
  getGoodsAllList (param) {
    return http.get(http.adornUrl('admin/goods/all/pages'), {
      params: param
    })
  },
  /** 平台商品热门推荐   **/
  goodsHot (param) {
    return http.put(http.adornUrl(`admin/goods/hot/${param}`))
  },
  /** 平台商品审核   **/
  goodsCheck (param) {
    return http.put(http.adornUrl('admin/goods/check'), param)
  },

  /** 平台查询所有商品分类    **/
  getCategoryAllList (param) {
    return http.get(http.adornUrl('admin/category/all'), {
      params: param
    })
  },
  /** 平台获取商品分类（一级）    **/
  getCategoryList (param) {
    return http.get(http.adornUrl('admin/category/first'), {
      params: param
    })
  },
  /** 平台添加商品分类    **/
  addCategory (param) {
    return http.post(http.adornUrl('admin/category/create'), param)
  },
  /** 平台修改商品分类    **/
  updateCategory (param) {
    return http.put(http.adornUrl('admin/category/update'), param)
  },
  /** 平台删除商品分类    **/
  deleteCategory (param) {
    return http.delete(http.adornUrl('admin/category/delete/') + param)
  },
  /** 平台根据分类id查询    **/
  getaddCategory (param) {
    return http.get(http.adornUrl('admin/category/info/' + param))
  },

  /** 平台查询所有惠选商品分类    **/
  getHxCategoryAllList (param) {
    return http.get(http.adornUrl('admin/hxcategory/all'), {
      params: param
    })
  },
  /** 平台获取商品分类（一级）    **/
  getHxCategoryList (param) {
    return http.get(http.adornUrl('admin/hxcategory/first'), {
      params: param
    })
  },
  /** 平台添加商品分类    **/
  addHxCategory (param) {
    return http.post(http.adornUrl('admin/hxcategory/create'), param)
  },
  /** 平台修改商品分类    **/
  updateHxCategory (param) {
    return http.put(http.adornUrl('admin/hxcategory/update'), param)
  },
  /** 平台删除商品分类    **/
  deleteHxCategory (param) {
    return http.delete(http.adornUrl('admin/hxcategory/delete/') + param)
  },
  /** 平台根据分类id查询    **/
  getaddHxCategory (param) {
    return http.get(http.adornUrl('admin/hxcategory/info/' + param))
  },

  /** 平台提现列表    **/
  getWithdrawList (param) {
    return http.get(http.adornUrl('admin/withdraw/list'), {
      params: param
    })
  },
  /** 平台资金列表    **/
  getBillList (param) {
    return http.get(http.adornUrl('admin/sys/bill/list'), {
      params: param
    })
  },
  /** 平台提现详情    **/
  getWithdrawInfo (param) {
    return http.get(http.adornUrl('admin/withdraw/info/' + param))
  },
  /** 平台提现审核   **/
  getWithdrawRemit (param) {
    return http.post(http.adornUrl('admin/withdraw/remit'), param)
  },
  /** 平台提现打款   **/
  getWithdrawCheck (param) {
    return http.post(http.adornUrl('admin/withdraw/withdrawCheck'), param)
  },
  /** 平台交易配置   **/
  postSaleconfigSave (param) {
    return http.post(http.adornUrl('admin/saleconfig/save'), param)
  },
  /** 获取平台信息   **/
  getconfigSave () {
    return http.get(http.adornUrl('admin/saleconfig/info'))
  },
  /** 平台用户列表    **/
  getAccountList (param) {
    return http.get(http.adornUrl('admin/account/list'), {
      params: param
    })
  },
  getMember (param) {
    return http.get(http.adornUrl('admin/personal/data/list'), {
      params: param
    })
  },
  /** 平台用户修改贡献值    **/
  editAccountConsumption (param) {
    return http.post(http.adornUrl('admin/userordergains//update/commission'), param)
  },
  /** 平台用户列表（启用禁用）    **/
  updateStatus (param) {
    return http.post(http.adornUrl('admin/account/updateStatus'), param)
  },
  /** 是否为线下店长    **/
  updateOflineShopownerStatus (param) {
    return http.post(http.adornUrl('admin/account/updateOflineShopownerStatus'), param)
  },
  /** 平台根据用户id查询    **/
  getAccountInfo (param) {
    return http.get(http.adornUrl('admin/account/info/' + param))
  },
  /** 平台充值有礼(列表)   **/
  getRefillCardList (param) {
    return http.get(http.adornUrl('admin/refill/card/list'), {
      params: param
    })
  },
  /** 平台充值有礼(添加)   **/
  postRefillCardSave (param) {
    return http.post(http.adornUrl('admin/refill/card/save'), param)
  },
  /** 平台充值有礼id查询    **/
  getRefillnfo (param) {
    return http.get(http.adornUrl('admin/refill/card/info/' + param))
  },
  /** 平台充值有礼(修改)   **/
  putRefillCardUpdate (param) {
    return http.put(http.adornUrl('admin/refill/card/update'), param)
  },
  // 保存其他店长奖励配置
  otherStoreManagerRewardSave (param) {
    return http.post(http.adornUrl('admin/otherStoreManagerReward/config/save'), param)
  },
  // 获取其他店长奖励配置信息
  otherStoreManagerRewardInfo () {
    return http.get(http.adornUrl('admin/otherStoreManagerReward/config/info'))
  },
  // 保存积分配置
  integralSave (param) {
    return http.post(http.adornUrl('admin/integral/config/save'), param)
  },
  // 获取积分信息
  integralRecordInfo (param) {
    return http.get(http.adornUrl('admin/integral/config/info'), param)
  },
  /** 平台充值有礼(上下架)   **/
  postRefillCardOperation (param) {
    return http.post(http.adornUrl('admin/refill/card/operation'), param)
  },
  /** 平台充值有礼(删除)   **/
  delRefillCard (param) {
    return http.delete(http.adornUrl('admin/refill/card/delete'), {
      data: param
    })
  },
  /** 申请审核信息(删除)   **/
  delApply (param) {
    return http.delete(
      http.adornUrl('admin/shop/update/record/delete/' + param)
    )
  },
  /** 商家后台分页查询自营商品   **/
  getGoodsSelf (param) {
    return http.get(http.adornUrl('admin/goods/self/pages'), {
      params: param
    })
  },

  // 平台商家设置是否可以代销商品
  canSelling (param) {
    return http.put(http.adornUrl('admin/goods/set-proxy'), param)
  },

  // 加盟商家代销商品
  shopCanSell (id) {
    return http.put(http.adornUrl(`admin/goods/auth/${id}`))
  },

  // 单品上下架
  singlegoodsUpDown (id) {
    return http.put(http.adornUrl(`/admin/singlegoods/added/${id}`))
  },

  // 加盟商家取消代销商品

  shopCancelSell (id) {
    return http.put(http.adornUrl(`admin/goods/cancel_auth/${id}`))
  },

  // 加盟商家已代销的商品（我的代销）
  mySellingGoods (param) {
    return http.get(http.adornUrl('admin/goods/proxy/pages'), {
      params: param
    })
  },
  // 加盟商家代销中心列表
  shopSellList (param) {
    return http.get(http.adornUrl('admin/goods/platform_goods/pages'), {
      params: param
    })
  },

  /** 商品列表上下架    **/
  goodsPutAway (param) {
    return http.put(http.adornUrl('admin/goods/added'), param)
  },

  /** 查询商品的折扣信息 */
  getGoodsDiscount (id) {
    return http.get(http.adornUrl(`admin/goodsuserdiscount/info/${id}`))
  },

  /** 设置商品的折扣信息 */
  setGoodsDiscount (id, param) {
    return http.post(http.adornUrl(`admin/goodsuserdiscount/set/${id}`), param)
  },

  /** 平台广告(列表)   **/
  getAdList (param) {
    return http.get(http.adornUrl('admin/ad/ad/list'), {
      params: param
    })
  },
  /** 平台广告位查询   **/
  getAdLocationSelect (param) {
    return http.get(http.adornUrl('admin/ad/adLocation/select'), {
      params: param
    })
  },
  // 平台广告上下线
  postOnOff (param) {
    return http.post(http.adornUrl('admin/ad/ad/onOff'), param)
  },
  /** 平台广告(添加)   **/
  postAdSave (param) {
    return http.post(http.adornUrl('admin/ad/ad/save'), param)
  },
  /** 平台广告(id查询)   **/
  getAdInfo (param) {
    return http.get(http.adornUrl('admin/ad/ad/info/' + param))
  },
  // 平台广告删除
  delAd (param) {
    return http.delete(http.adornUrl('admin/ad/ad/delete/' + param))
  },
  // 广告置顶
  postAdTop (param) {
    return http.post(http.adornUrl('admin/ad/ad/top'), param)
  },
  // 平台端-新增修改平台信息
  saveSystemInfo (param) {
    return http.post(http.adornUrl('admin/system/info/save'), param)
  },
  // 平台端-平台信息详情
  infoSystemInfo (param) {
    return http.get(http.adornUrl('admin/system/info/info'), {
      params: param
    })
  },
  // 首页广告
  infoPopconfig (param) {
    return http.get(http.adornUrl('api/popconfig/info/info'), {
      params: param
    })
  },
  // 更改首页广告
  infoUpDatePopconfig (param) {
    return http.post(http.adornUrl('api/popconfig/set'), param)
  },
  /** 广告位列表(列表)   **/
  getAdLocationList (param) {
    return http.get(http.adornUrl('admin/ad/adLocation/list'), {
      params: param
    })
  },
  // 平台端-广告位保存
  saveAdLocation (param) {
    return http.post(http.adornUrl('admin/ad/adLocation/save'), param)
  },
  // 平台端-广告位修改
  updateAdLocation (param) {
    return http.put(http.adornUrl('admin/ad/adLocation/update'), param)
  },
  // 平台端-详情
  getAdLocationInfo (param) {
    return http.get(http.adornUrl('admin/ad/adLocation/info/' + param))
  },
  // 广告位删除
  delAdLocation (param) {
    return http.delete(http.adornUrl('admin/ad/adLocation/delete/' + param))
  },

  // 平台初始化商家(添加)
  saveInitializeShop (param) {
    return http.post(http.adornUrl('admin/yxt/shop/initializeShop'), param)
  },
  // 平台初始化商家(修改)
  updateInitializeShop (param) {
    return http.put(http.adornUrl('admin/yxt/shop/update'), param)
  },
  // 平台初始化商家(修改)
  updateInitializeShoptwo (param) {
    return http.post(http.adornUrl('admin/shop/update/record/apply'), param)
  },
  // 平台初始化商家(查询)
  getAdminShop (param) {
    return http.get(http.adornUrl('admin/yxt/shop/adminShop'), {
      params: param
    })
  },
  // 平台管理员账户信息(查询)
  getUserInfo (param) {
    return http.get(http.adornUrl('sys/user/info/' + param))
  },
  getOssQrcode (param) {
    return http.get(http.adornUrl('admin/sys/oss/qrcode'), {
      params: param
    })
  },

  // 平台初始化商家地址根据区的经纬度(查询)
  getlbsPat (param) {
    return http.get(http.adornUrl('api/cnarea/lbs-path/' + param))
  },
  // 省市区
  getCnareaTreelbs (param) {
    return http.get(http.adornUrl('api/cnarea/tree-lbs'), {
      params: param
    })
  },

  /** 商家商品分组列表  **/
  getGoodsGroupsList (param) {
    return http.get(http.adornUrl('admin/goods_group/all'), {
      params: param
    })
  },
  /** 商家商品分组添加  **/
  postGoodsGroups (param) {
    return http.post(http.adornUrl('admin/goods_group/create'), param)
  },
  /** 商家商品分组修改  **/
  updateGoodsGroups (param) {
    return http.put(http.adornUrl('admin/goods_group/update'), param)
  },

  /** 商家商品设置分组  **/
  goodsSetGroups (param) {
    return http.put(http.adornUrl('admin/goods/auth_goods/groups/set'), param)
  },

  /** 商家获取上级分组  **/
  getGoodsGroupFirst (param) {
    return http.post(http.adornUrl('admin/goods_group/first'), {
      params: param
    })
  },
  /** 商家按Id查询商品分组  **/
  getInfoId (param) {
    return http.get(http.adornUrl('admin/goods_group/info/' + param))
  },
  /** 商家按Id删除商品分组  **/
  deleteGoodsGroupId (param) {
    return http.delete(http.adornUrl('admin/goods_group/delete/' + param))
  },
  /** 商家单品列表  **/
  getSinglegoodsList (param) {
    return http.get(http.adornUrl('admin/singlegoods/pages'), {
      params: param
    })
  },
  /** 商家单品添加  **/
  saveSinglegoods (param) {
    return http.post(http.adornUrl('admin/singlegoods/create'), param)
  },
  /** 商家单品修改  **/
  updateSinglegoods (param) {
    return http.post(http.adornUrl('admin/singlegoods/update'), param)
  },
  /** 商家单品按id查询  **/
  getSinglegoodsInfo (param) {
    return http.get(http.adornUrl('admin/singlegoods/info/' + param))
  },
  /** 商家单品按id删除  **/
  delSinglegoods (param) {
    return http.delete(http.adornUrl('admin/singlegoods/delete/' + param))
  },
  /** 商家单品增加库存  **/
  saveSinglegoodsInStock (param) {
    return http.post(http.adornUrl('admin/singlegoods/manual/in_stock'), param)
  },
  /** 商家单品出库存  **/
  saveSinglegoodsOutStock (param) {
    return http.post(http.adornUrl('admin/singlegoods/manual/out_stock'), param)
  },
  /** 商家单品出入库记录  **/
  getStockrecordList (param) {
    return http.get(http.adornUrl('admin/stockrecord/pages'), {
      params: param
    })
  },

  /** 商家配送设置  **/
  getLogisticsconfigInfo (param) {
    return http.get(http.adornUrl('admin/logisticsconfig/info'), {
      params: param
    })
  },
  /** 商家配送设置  **/
  saveLogisticsconfig (param) {
    return http.post(http.adornUrl('admin/logisticsconfig/save'), param)
  },

  /** 商家首单优惠（添加）  **/
  saveFirstOrder (param) {
    return http.post(http.adornUrl('admin/marketing/firstOrder/save'), param)
  },
  /** 商家首单优惠（查询）  **/
  getFirstOrder (param) {
    return http.get(http.adornUrl('admin/marketing/firstOrder/info'), {
      params: param
    })
  },

  /** 商家首单优惠（删除）  **/
  delFirstOrder (param) {
    return http.delete(
      http.adornUrl('admin/marketing/firstOrder/delete/' + param)
    )
  },

  /** 商家首单优惠（详情）  **/
  infoFirstOrder (param) {
    return http.get(http.adornUrl('admin/marketing/firstOrder/info'), {
      params: param
    })
  },

  /** 商家添加运费模板  **/
  addFreighttemplate (param) {
    return http.post(http.adornUrl('admin/freighttemplate/add'), param)
  },
  /** 商家修改运费模板  **/
  updateFreighttemplate (param) {
    return http.put(http.adornUrl('admin/freighttemplate/update'), param)
  },
  /** 商家删除运费模板  **/
  deleteFreighttemplate (param) {
    return http.delete(http.adornUrl('admin/freighttemplate/delete/' + param))
  },
  /** 商家删除运费模板规则  **/
  deleteFreighttemplateRule (param) {
    return http.delete(
      http.adornUrl('admin/freighttemplate/rule/delete/' + param)
    )
  },
  /** 商家获取所有运费模板  **/
  getFreighttemplateList (param) {
    return http.get(http.adornUrl('admin/freighttemplate/list'), {
      params: param
    })
  },
  /** 商家获取运费模板(id查询)  **/
  getFreighttemplateInfo (param) {
    return http.get(http.adornUrl('admin/freighttemplate/info/' + param))
  },
  /** 商家添加运费模板规则
   * @param {Number} id id;
   * @param {Object} param 参数对象
   **/
  addFreighttemplateRule (id, param) {
    return http.post(
      http.adornUrl(`admin/freighttemplate/rule/add/${id}`),
      param
    )
  },
  /** 商家修改运费模板规则  **/
  updateFreighttemplateRule (id, param) {
    return http.put(
      http.adornUrl(`admin/freighttemplate/rule/update/${id}`),
      param
    )
  },

  /** 商家查询所有会员  **/
  getShopMemberlist (param) {
    return http.get(http.adornUrl('admin/account/list'), {
      params: param
    })
  },

  /** 激活会员  **/
  activationUser (param) {
    return http.post(http.adornUrl('admin/account/activation' + '?' + 'id' + '=' + param), {
      param
    })
  },

  // 更改会员推荐人
  getUpdateGrade (param) {
    return http.post(http.adornUrl('admin/account/update-grade'), param)
  },

  /** 商家查询收货地址配置  **/
  getAddressConfig () {
    return http.get(http.adornUrl('admin/returnaddress/info'))
  },

  /** 商家设置收货地址配置  **/
  setAddressConfig (param) {
    return http.post(http.adornUrl('admin/returnaddress/save'), param)
  },

  /** 平台查会员的订单统计数据  **/
  getPlatformStatistics (param) {
    return http.get(
      http.adornUrl('admin/saleorder/consume/platform-statistics/' + param)
    )
  },
  /** 店铺查会员的订单统计数据  **/
  getConsumeStatistics (param) {
    return http.get(
      http.adornUrl('admin/saleorder/consume/statistics/' + param)
    )
  },
  /** 商家查询会员详细(id查询)  **/
  getAcountInfo (param) {
    return http.get(http.adornUrl('admin/account/info/' + param))
  },
  /** 用户查看金额明细(id查询)  **/
  getRefillCardInfo (param, page, limit) {
    return http.get(
      http.adornUrl(
        `admin/bill/refillCard/get-user-bill/${param}?page=${page}&limit=${limit}`
      )
    )
  },
  getintegral (param, page, limit) {
    return http.get(
      http.adornUrl(
        `admin/integral/record/member/${param}?page=${page}&limit=${limit}`
      )
    )
  },
  /** 商家查询自己的商家信息  **/
  getYxtShopInfo (param) {
    return http.get(http.adornUrl('admin/yxt/shop/getShopInfo'), {
      params: param
    })
  },
  /** 商家提现列表  **/
  getWithdrawShopList (param) {
    return http.get(http.adornUrl('admin/withdraw/shopList'), {
      params: param
    })
  },
  /** 商家资金（待入账）  **/
  getGainsPagesList (param) {
    return http.get(http.adornUrl('admin/shop/gains/pages'), {
      params: param
    })
  },
  /** 商家所得提现  **/
  postShopWithdraw (param) {
    return http.post(http.adornUrl('admin/withdraw/shopWithdraw'), param)
  },
  /** 根据商家所得获取会员分佣所得  **/
  getListByGainId (id) {
    return http.get(http.adornUrl(`admin/userordergains/list/${id}`))
  },

  /** 商家资金列表  **/
  getGainsbillList (param) {
    return http.get(http.adornUrl('admin/gainsbill/pages'), {
      params: param
    })
  },
  /** 商家资金（统计商家所得相关数据）  **/
  getGainsbill (param) {
    return http.get(http.adornUrl('admin/withdraw/statistics/bill'), {
      params: param
    })
  },

  /** 秒杀活动列表  **/
  getSeckillactivityList (param) {
    return http.get(http.adornUrl('admin/marketing/seckillactivity/list'), {
      params: param
    })
  },
  /** 秒杀活动-添加  **/
  saveSeckillactivity (param) {
    return http.post(
      http.adornUrl('admin/marketing/seckillactivity/save'),
      param
    )
  },
  /** 秒杀活动-修改  **/
  updateSeckillactivity (param) {
    return http.put(
      http.adornUrl('admin/marketing/seckillactivity/update'),
      param
    )
  },
  /** 秒杀活动-查询（id）  **/
  getSeckillactivityInfo (param) {
    return http.get(
      http.adornUrl('admin/marketing/seckillactivity/info/' + param)
    )
  },
  /** 秒杀活动-删除  **/
  delSeckillactivity (param) {
    return http.delete(
      http.adornUrl('admin/marketing/seckillactivity/delete/' + param)
    )
  },
  /** 查询某个秒杀活动商品列表  **/
  getSeckillActivityGoodsList (param) {
    return http.get(
      http.adornUrl('admin/marketing/seckillActivityGoods/getGoodsList'),
      {
        params: param
      }
    )
  },
  /** 根据秒杀商品ID查询sku */
  getSeckillSku (param) {
    return http.get(http.adornUrl('admin/seckill/sku/list/' + param))
  },
  /** 根据pin商品ID查询sku */
  getGroupbuySku (param) {
    return http.get(http.adornUrl('admin/groupbuy/sku/list/' + param))
  },

  /** 添加商品-商家的秒杀活动商品列表  **/
  getSelfForactivityList (param) {
    return http.get(http.adornUrl('admin/goods/self/foractivity/pages'), {
      params: param
    })
  },
  /** 添加、修改活动 秒杀活动商品列表  **/
  postSeckillActivityGoods (param) {
    return http.post(
      http.adornUrl('admin/marketing/seckillActivityGoods/save'),
      param
    )
  },
  /** 删除活动商品  **/
  delSeckillActivityGoods (param) {
    return http.delete(
      http.adornUrl('admin/marketing/seckillActivityGoods/delete/' + param)
    )
  },
  /** 秒杀活动商品详情  **/
  getSeckillActivityGoodsInfo (param) {
    return http.get(
      http.adornUrl('admin/marketing/seckillActivityGoods/info/' + param)
    )
  },
  /** 秒杀活动(查询商品所有规格)  **/
  getGoodsSkus (param) {
    return http.get(http.adornUrl('admin/goods/skus/' + param))
  },
  /** 秒杀活动列表  **/
  // getSeckillactivityList (param) {
  //   return http.get(http.adornUrl('admin/marketing/seckillactivity/list'), {
  //     params: param
  //   })
  // },
  /** 秒杀活动-添加  **/
  // saveSeckillactivity (param) {
  //   return http.post(http.adornUrl('admin/marketing/seckillactivity/save'), param)
  // },
  /** 秒杀活动-修改  **/
  // updateSeckillactivity (param) {
  //   return http.put(http.adornUrl('admin/marketing/seckillactivity/update'), param)
  // },
  /** 秒杀活动-查询（id）  **/
  // getSeckillactivityInfo (param) {
  //   return http.get(http.adornUrl('admin/marketing/seckillactivity/info/' + param))
  // },
  /** 秒杀活动-删除  **/
  // delSeckillactivity (param) {
  //   return http.delete(http.adornUrl('admin/marketing/seckillactivity/delete/' + param))
  // },
  /** 查询某个秒杀活动商品列表  **/
  // getSeckillActivityGoodsList (param) {
  //   return http.get(http.adornUrl('admin/marketing/seckillActivityGoods/getGoodsList'), {
  //     params: param
  //   })
  // },
  /** 添加商品-商家的秒杀活动商品列表  **/
  // getSelfForactivityList (param) {
  //   return http.get(http.adornUrl('admin/goods/self/foractivity/pages'), {
  //     params: param
  //   })
  // },
  /** 添加、修改活动 秒杀活动商品列表  **/
  // postSeckillActivityGoods (param) {
  //   return http.post(http.adornUrl('admin/marketing/seckillActivityGoods/save'), param)
  // },
  /** 删除活动商品  **/
  // delSeckillActivityGoods (param) {
  //   return http.delete(http.adornUrl('admin/marketing/seckillActivityGoods/delete/' + param))
  // },
  /** 秒杀活动商品详情  **/
  // getSeckillActivityGoodsInfo (param) {
  //   return http.get(http.adornUrl('admin/marketing/seckillActivityGoods/info/' + param))
  // },
  /** 秒杀活动(查询商品所有规格)  **/
  // getGoodsSkus (param) {
  //   return http.get(http.adornUrl('admin/goods/skus/' + param))
  // },

  /** 拼团活动列表  **/
  getGroupbuyActivityList (param) {
    return http.get(http.adornUrl('admin/groupbuy/activity/list'), {
      params: param
    })
  },
  /** 拼团活动(添加)  **/
  saveGroupbuyActivity (param) {
    return http.post(http.adornUrl('admin/groupbuy/activity/save'), param)
  },
  /** 拼团活动详情  **/
  getGroupbuyActivityInfo (param) {
    return http.get(http.adornUrl('admin/groupbuy/activity/info/' + param))
  },
  /** 拼团活动(修改)  **/
  updateGroupbuyActivity (param) {
    return http.put(http.adornUrl('admin/groupbuy/activity/update'), param)
  },
  /** 拼团活动(删除)  **/
  delGroupbuyActivity (param) {
    return http.delete(http.adornUrl('admin/groupbuy/activity/delete/' + param))
  },
  /** 查询指定拼团活动商品列表  **/
  getGoodsIdList (param) {
    return http.get(
      http.adornUrl('admin/groupbuy/activitygoods/getGoodsList'),
      {
        params: param
      }
    )
  },
  /** 删除拼团活动商品 **/
  delGroupbuyActivitygoods (param) {
    return http.delete(
      http.adornUrl('admin/groupbuy/activitygoods/delete/' + param)
    )
  },
  /** 添加商品-商家的拼团活动商品列表  **/
  getforactivitylist (param) {
    return http.get(http.adornUrl('admin/goods/self/foractivity/pages'), {
      params: param
    })
  },
  /** 查看商品的订单 */
  groupbuyTeam (param) {
    return http.get(http.adornUrl('admin/groupbuy/team/page'), {
      params: param
    })
  },

  /** 查单商品的参团人员 */
  groupbuyTeammember (param) {
    return http.get(http.adornUrl('admin/groupbuy/teammember/list'), {
      params: param
    })
  },
  /** 添加拼团活动商品  **/
  saveGroupbuyActivitygoods (param) {
    return http.post(http.adornUrl('admin/groupbuy/activitygoods/save'), param)
  },
  /** 拼团活动商品详情  **/
  getActivitygoodsInfo (param) {
    return http.get(http.adornUrl('admin/groupbuy/activitygoods/info/' + param))
  },
  /** 银行卡icon  **/
  getBankcardList (param) {
    return http.get(http.adornUrl('admin/bankcard/icon/select'), {
      params: param
    })
  },
  /** 银行卡  **/
  getMemberBankCardList (param) {
    return http.get(http.adornUrl('admin/member/bankcard/bankCardList'), {
      params: param
    })
  },
  /** 银行卡----保存/修改  **/
  saveBankCard (param) {
    return http.post(http.adornUrl('admin/member/bankcard/save'), param)
  },
  /** 银行卡---删除 **/
  delBankCard (param) {
    return http.delete(http.adornUrl('admin/member/bankcard/delete/' + param))
  },
  /** 银行卡---详情 **/
  getBankCardInfo (param) {
    return http.get(http.adornUrl('admin/member/bankcard/info/' + param))
  },
  /** 银行卡---详情 **/
  setDefaultBankCard (param) {
    return http.post(
      http.adornUrl('admin/member/bankcard/setDefaultBankCard'),
      param
    )
  },
  /** 获取商家默认银行卡  **/
  getDefaultBankCard (param) {
    return http.get(http.adornUrl('admin/member/bankcard/defaultBankCard'), {
      params: param
    })
  },
  /** 获取银行卡icon列表  **/
  getBankcardIconList (param) {
    return http.get(http.adornUrl('admin/bankcard/icon/list'), {
      params: param
    })
  },
  /** 银行卡icon添加 **/
  saveBankCardIcon (param) {
    return http.post(http.adornUrl('admin/bankcard/icon/save'), param)
  },
  /** 银行卡icon删除 **/
  delBankCardIcon (param) {
    return http.delete(http.adornUrl('admin/bankcard/icon/delete/' + param))
  },
  /** 拼团活动列表  **/
  // getGroupbuyActivityList (param) {
  //   return http.get(http.adornUrl('admin/groupbuy/activity/list'), {
  //     params: param
  //   })
  // },
  /** 拼团活动(添加)  **/
  // saveGroupbuyActivity (param) {
  //   return http.post(http.adornUrl('admin/groupbuy/activity/save'), param)
  // },
  /** 拼团活动详情  **/
  // getGroupbuyActivityInfo (param) {
  //   return http.get(http.adornUrl('admin/groupbuy/activity/info/' + param))
  // },
  /** 拼团活动(修改)  **/
  // updateGroupbuyActivity (param) {
  //   return http.put(http.adornUrl('admin/groupbuy/activity/update'), param)
  // },
  /** 拼团活动(删除)  **/
  // delGroupbuyActivity (param) {
  //   return http.delete(http.adornUrl('admin/groupbuy/activity/delete/' + param))
  // },
  /** 查询指定拼团活动商品列表  **/
  // getGoodsIdList (param) {
  //   return http.get(http.adornUrl('admin/groupbuy/activitygoods/getGoodsList'), {
  //     params: param
  //   })
  // },
  /** 删除拼团活动商品 **/
  // delGroupbuyActivitygoods (param) {
  //   return http.delete(http.adornUrl('admin/groupbuy/activitygoods/delete/' + param))
  // },
  /** 添加商品-商家的拼团活动商品列表  **/
  // getforactivitylist (param) {
  //   return http.get(http.adornUrl('admin/goods/self/foractivity/pages'), {
  //     params: param
  //   })
  // },
  /** 添加拼团活动商品  **/
  // saveGroupbuyActivitygoods (param) {
  //   return http.post(http.adornUrl('admin/groupbuy/activitygoods/save'), param)
  // },

  /** 银行卡icon  **/
  // getBankcardList (param) {
  //   return http.get(http.adornUrl('admin/bankcard/icon/select'), {
  //     params: param
  //   })
  // },
  /** 银行卡  **/
  // getMemberBankCardList (param) {
  //   return http.get(http.adornUrl('admin/member/bankcard/bankCardList'), {
  //     params: param
  //   })
  // },
  /** 银行卡----保存/修改  **/
  // saveBankCard (param) {
  //   return http.post(http.adornUrl('admin/member/bankcard/save'), param)
  // },
  /** 银行卡---删除 **/
  // delBankCard (param) {
  //   return http.delete(http.adornUrl('admin/member/bankcard/delete/' + param))
  // },
  /** 银行卡---详情 **/
  // getBankCardInfo (param) {
  //   return http.get(http.adornUrl('admin/member/bankcard/info/' + param))
  // },
  /** 银行卡---详情 **/
  // setDefaultBankCard (param) {
  //   return http.post(http.adornUrl('admin/member/bankcard/setDefaultBankCard'), param)
  // },
  /** 获取商家默认银行卡  **/
  // getDefaultBankCard (param) {
  //   return http.get(http.adornUrl('admin/member/bankcard/defaultBankCard'), {
  //     params: param
  //   })
  // },
  /** 获取银行卡icon列表  **/
  // getBankcardIconList (param) {
  //   return http.get(http.adornUrl('admin/bankcard/icon/list'), {
  //     params: param
  //   })
  // },
  /** 银行卡icon添加 **/
  // saveBankCardIcon (param) {
  //   return http.post(http.adornUrl('admin/bankcard/icon/save'), param)
  // },
  /** 银行卡icon删除 **/
  // delBankCardIcon (param) {
  //   return http.delete(http.adornUrl('admin/bankcard/icon/delete/' + param))
  // },

  /** 物流公司列表 **/
  getLogisticsList (param) {
    return http.get(http.adornUrl('admin/logistics/company/list'), {
      params: param
    })
  },
  /** 选择物流公司 **/
  selectLogistics (param) {
    return http.get(http.adornUrl('admin/logistics/company/select'), {
      params: param
    })
  },
  /** 物流公司保存 **/
  saveLogistics (param) {
    return http.post(http.adornUrl('admin/logistics/company/save'), param)
  },
  /** 物流公司详情 **/
  getLogisticsInfo (param) {
    return http.get(http.adornUrl('admin/logistics/company/info/' + param))
  },
  /** 物流公司更新 **/
  updateLogistics (param) {
    return http.put(http.adornUrl('admin/logistics/company/update'), param)
  },
  /** 物流公司删除 **/
  delLogistics (param) {
    return http.delete(http.adornUrl('admin/logistics/company/delete/' + param))
  },
  /** 系统敏感日志记录列表 **/
  getSensitivelogList (param) {
    return http.get(http.adornUrl('admin/sensitivelog/list'), {
      params: param
    })
  },
  /** 微信模板列表 **/
  getNotifytempList (param) {
    return http.get(http.adornUrl('admin/config/notifytemp/list'), {
      params: param
    })
  },
  /** 微信模板保存 **/
  saveNotifytemp (param) {
    return http.post(http.adornUrl('admin/config/notifytemp/save'), param)
  },
  /** 微信模板启用 **/
  useNotifytemp (param) {
    return http.post(http.adornUrl('admin/config/notifytemp/use'), param)
  },
  /** 常见问题列表 **/
  getFaqList (param) {
    return http.get(http.adornUrl('admin/sys/faq/list'), {
      params: param
    })
  },
  /** 常见问题---保存 **/
  saveFaq (param) {
    return http.post(http.adornUrl('admin/sys/faq/save'), param)
  },
  /** 银行卡icon删除 **/
  delfaq (param) {
    return http.delete(http.adornUrl('admin/sys/faq/delete/' + param))
  },
  /** 物流公司详情 **/
  faqInfo (param) {
    return http.get(http.adornUrl('admin/sys/faq/info/' + param))
  },
  /** 常见问题---保存 **/
  updateFaq (param) {
    return http.put(http.adornUrl('admin/sys/faq/update'), param)
  },

  /** 腾讯地图-逆地址解析   **/
  mapAddress (param) {
    return http.get(http.adornUrl('/admin/cnarea/get-address/' + param))
  },
  /** 腾讯地图-地址解析   **/
  mapAddressgetcode (param) {
    return http.get(http.adornUrl('/admin/cnarea/get-code/' + param))
  },
  /** 商家的会员等级配置列表   **/
  getShopUserRoleConfigList (param) {
    return http.get(http.adornUrl('admin/shop/shopUserRoleConfig/select'), {
      params: param
    })
  },
  /** 修改商家的会员等级配置   **/
  updateShopUserRoleConfig (param) {
    return http.put(
      http.adornUrl('admin/shop/shopUserRoleConfig/update'),
      param
    )
  },
  /** 商家的会员等级配置详情  **/
  getShopUserRoleConfigInfo (param) {
    return http.get(
      http.adornUrl('/admin/shop/shopUserRoleConfig/info/' + param)
    )
  },
  /** 银行卡列表  **/
  bankListApi () {
    return http.get(http.adornUrl('admin/member/bankcard/select'))
  },
  /** 银行卡列表  **/
  infoAggreementInfo () {
    return http.get(http.adornUrl('admin/protocol/info'))
  },

  /** 设置会员注册协议 **/
  setProtocol (param) {
    return http.put(http.adornUrl('admin/protocol/set-user-protocol'), param)
  },
  /** 设置商家申请协议 **/
  setshopProtocol (param) {
    return http.put(http.adornUrl('admin/protocol/set-shop-protocol'), param)
  },
  /** 商家的会员等级配置列表  **/
  shopUserRoleConfigselect () {
    return http.get(http.adornUrl('admin/shop/shopUserRoleConfig/select'))
  },
  /** 商家修改信息列表  **/
  recordList (param) {
    return http.get(http.adornUrl('admin/shop/update/record/list'), {
      params: param
    })
  },
  /** 平台查询所有服务分类    **/
  getServiceList (param) {
    return http.get(http.adornUrl('admin/classify/all'), {
      params: param
    })
  },
  /** 平台添加服务分类    **/
  addServiceCategory (param) {
    return http.post(http.adornUrl('admin/classify/create'), param)
  },
  /** 平台修改服务分类    **/
  updateServiceCategory (param) {
    return http.put(http.adornUrl('admin/classify/update'), param)
  },
  /** 平台删除服务分类    **/
  deleteServiceCategory (param) {
    return http.delete(http.adornUrl('admin/classify/delete/') + param)
  },
  /** 平台根据服务分类id查询    **/
  getServiceCategory (param) {
    return http.get(http.adornUrl('admin/classify/info/' + param))
  },
  /** 商家修改信息列表  **/
  recordupdateList (param) {
    return http.get(http.adornUrl('admin/shop/update/record/list'), {
      params: param
    })
  },

  // //获取网红信息列表
  celebrity (param) {
    return http.get(http.adornUrl('admin/celebrity/page'), {
      params: param
    })
  },
  /** 商家查询所有服务分组    **/
  getServiceGroupList (param) {
    return http.get(http.adornUrl('admin/servicegoods/group/all'), {
      params: param
    })
  },
  /** 商家添加服务分组    **/
  addServiceGroup (param) {
    return http.post(http.adornUrl('admin/servicegoods/group/create'), param)
  },
  /** 商家修改服务分组    **/
  updateServiceGroup (param) {
    return http.put(http.adornUrl('admin/servicegoods/group/update'), param)
  },
  /** 商家删除服务分组    **/
  deleteServiceGroup (param) {
    return http.delete(
      http.adornUrl('admin/servicegoods/group/delete/') + param
    )
  },
  /** 商家根据服务分组id查询    **/
  getServiceGroup (param) {
    return http.get(http.adornUrl('admin/servicegoods/group/info/' + param))
  },
  /** 商家获取服务分组（一级）    **/
  getFirstServiceGroup (param) {
    return http.get(http.adornUrl('admin/servicegoods/group/first'), {
      params: param
    })
  },
  /** 商家分页查看服务商品   **/
  getServiceGoodsList (param) {
    return http.get(http.adornUrl('admin/servicegoods/self/pages'), {
      params: param
    })
  },
  /** 平台分页查看服务商品   **/
  getPlatformServiceList (param) {
    return http.get(http.adornUrl('admin/servicegoods/all/pages'), {
      params: param
    })
  },
  /** 平台服务审核   **/
  serviceCheck (param) {
    return http.put(http.adornUrl('admin/servicegoods/check'), param)
  },

  /** 作品列表 */
  opusList (param) {
    return http.get(http.adornUrl('admin/opus/list'), {
      params: param
    })
  },
  /** 作品详情 */
  opusInfo (id) {
    return http.get(http.adornUrl('admin/opus/info/' + id), {})
  },
  /** 审核 */
  opusAudit (param) {
    return http.post(http.adornUrl('admin/opus/audit'), param)
  },
  /** 是否推荐 */
  opusStick (param) {
    return http.post(http.adornUrl('admin/opus/stick'), param)
  },
  /** 预约留言 */
  recordSave (param) {
    return http.post(
      http.adornUrl('admin/service/goods/reservation/record/save'),
      param
    )
  },
  recordList (param) {
    return http.get(
      http.adornUrl('admin/service/goods/reservation/record/list'),
      {
        params: param
      }
    )
  },
  /** 商家缺货记录  **/
  getOutStockrecordList (param) {
    return http.get(http.adornUrl('admin/singlegoods/understockrecord/list'), {
      params: param
    })
  },

  replySave (param) {
    return http.post(
      http.adornUrl('admin/comment/orderGoods/reply/save'),
      param
    )
  },

  /** 话题列表 */
  themeList (param) {
    return http.get(http.adornUrl('admin/opus/theme/list'), {
      params: param
    })
  },
  themeAdd (param) {
    return http.post(http.adornUrl('admin/opus/theme/add'), param)
  },
  themeUpdate (param) {
    return http.put(http.adornUrl('admin/opus/theme/edit'), param)
  },
  themeDel (param) {
    return http.delete(http.adornUrl('admin/opus/theme/delete/' + param))
  },
  themeOpen (param) {
    return http.post(http.adornUrl('admin/opus/theme/open'), param)
  },
  themeStick (param) {
    return http.post(http.adornUrl('admin/opus/theme/stick'), param)
  },

  // 关于我们列表
  getAboutList (params) {
    return http.get(http.adornUrl('admin/about/us/list'), { params })
  },
  // 关于我们保存
  saveAbout (params) {
    return http.post(http.adornUrl('admin/about/us/save'), params)
  },
  // 关于我们删除
  delAbout (id) {
    return http.delete(http.adornUrl(`admin/about/us/delete/${id}`))
  },
  // 关于我们修改
  updateAbout (params) {
    return http.put(http.adornUrl(`admin/about/us/update`), params)
  },
  // 关于我们详情
  getAboutDetail (id) {
    return http.get(http.adornUrl(`admin/about/us/info/${id}`))
  },

  // 课程分类

  classifyList (param) {
    return http.get(http.adornUrl('admin/article/course/classify/list'), {
      params: param
    })
  },
  classifyAdd (param) {
    return http.post(http.adornUrl('admin/article/course/classify/save'), param)
  },
  classifyUpdate (param) {
    return http.put(
      http.adornUrl('admin/article/course/classify/update'),
      param
    )
  },
  classifyDelete (param) {
    return http.delete(
      http.adornUrl('admin/article/course/classify/delete/' + param)
    )
  },
  // 文章作品评论
  commentPage (param) {
    return http.get(http.adornUrl('admin/comment/user/page'), {
      params: param
    })
  },
  commentIsShow (param) {
    return http.post(http.adornUrl('admin/comment/user/show'), param)
  },
  /** 获取指定店铺的等级设置  **/
  getShopConfig (param) {
    return http.get(
      http.adornUrl('admin/shop/shopUserRoleConfig/getShopConfig'),
      { params: param }
    )
  },
  /** 修改会员等级  **/
  updateVIPLevel (param) {
    return http.post(
      http.adornUrl('admin/account/userShopRole/update-class'),
      param
    )
  },
  /** 修改会员等级  **/
  updateNotice (param) {
    return http.put(http.adornUrl('admin/config/notifytemp/update'), param)
  },

  // 协议管理 详情
  protocolConfigInfo (markCode) {
    return http.get(http.adornUrl(`/admin/protocolConfig/info/${markCode}`))
  },
  // 协议管理 新增或修改
  protocolConfigAddOrEdit (data) {
    return http.post(http.adornUrl(`/admin/protocolConfig/addOrEdit`), data)
  },
  // 公益分润配置添加
  benefitConfigAdd (data) {
    return http.post(
      http.adornUrl(`/admin/commonweal/share/benefit/config/add`),
      data
    )
  },
  // 公益分润配置
  getByType (type) {
    return http.get(
      http.adornUrl(`/admin/commonweal/share/benefit/config/list`)
    )
  },
  // 订单公益捐款明细
  shopordergainsdonationList (param) {
    return http.get(http.adornUrl(`/admin/shopordergainsdonation/list`), {
      params: param
    })
  },
  // 获取街道或社区列表
  streetList (code) {
    return http.get(http.adornUrl(`/api/cnarea/lbs-children/${code}`))
  },
  // 更新会员的服务体系身份
  updateServiceSystem (data) {
    return http.post(http.adornUrl(`/admin/account/updateServiceSystem`), data)
  },
  // 获取邀请码
  getInvitationCode () {
    return http.get(http.adornUrl(`/admin/account/getInvitationCode`))
  },

  // 获取积分管理 积分明细
  getIntegralInfo () {
    return http.get(http.adornUrl(`/admin/userordergains/airdropStatistics`))
  },
  // 获取积分管理 积分明细列表
  getIntegralList (param) {
    return http.get(http.adornUrl(`/admin/aridroprecord/page`), {
      params: param
    })
  },
  // 获取积分管理 积分配置详情
  getIntegralConfig () {
    return http.get(http.adornUrl(`/admin/pointconfig/info`))
  },
  // 获取广告配置
  getAdvConfig () {
    return http.get(http.adornUrl(`/admin/advconfig/info`))
  },
  // 获取积分管理 积分配置修改
  saveIntegralConfig (data) {
    return http.post(http.adornUrl(`/admin/pointconfig/set`), data)
  },
  // 获取积分管理 积分配置修改
  saveAdvConfig (data) {
    return http.post(http.adornUrl(`/admin/advconfig/set`), data)
  },
  // 获取积分管理 积分配置列表查询
  getIntegralConfigList (params) {
    return http.get(http.adornUrl(`/admin/pointconfiglog/page`), {
      params: params
    })
  },
  // 获取积分管理 积分配置列表查询
  getIntegralGradInfo () {
    return http.get(http.adornUrl(`/config/point_grade_config/info`))
  },
  // 获取积分管理 积分配置列表查询
  saveIntegralGrad (data) {
    return http.post(http.adornUrl(`/config/point_grade_config/saveOrUpdate`), data)
  },
  // 获取积分管理 余额(消费额余额)积分列表查询
  getIntegralShiftList (params) {
    return http.get(http.adornUrl(`/admin/pointgiveaway/page`), {
      params: params
    })
  },
  // 获取积分管理 余额(消费额余额)积分列表查询
  getIntegralExchangeList (params) {
    return http.get(http.adornUrl(`/admin/pointtobalancerecord/page`), {
      params: params
    })
  },
  // 积分管理 手机号获取用户姓名
  getMobileToName (params) {
    return http.get(http.adornUrl(`/admin/account/userinfo/byMobile/${params}`))
  },
  // 积分管理 平台转赠积分确认接口
  submitRegif (data) {
    return http.post(http.adornUrl(`/admin/platformgivepointrecord/give`), data)
  },
  // 积分管理 平台积分转赠明细列表查询接口
  getIntegralPTRegiftList (params) {
    return http.get(http.adornUrl(`/admin/platformgivepointrecord/page`), {
      params: params
    })
  },
  // 积分余额 兑换统计
  getStatistics (params) {
    return http.get(http.adornUrl(`/admin/pointtobalancerecord/statistics`))
  },
  // 分润 分润配置信息
  getDivideInfo () {
    return http.get(http.adornUrl(`/config/profit_sharing/info`))
  },
  // 分润 分润配置保存
  saveDivide (data) {
    return http.post(http.adornUrl(`/config/profit_sharing/saveOrUpdate`), data)
  },
  // 钱包管理 转赠明细列表查询
  getWalletGivenList (params) {
    return http.get(http.adornUrl(`/admin/balancegiveaway/page`), {
      params: params
    })
  },
  /**
   *
   * @param {*} params
   * @returns
   * 资讯模块
   */
  // 咨讯列表
  getInformationList (params) {
    return http.get(http.adornUrl(`/admin/information/page`), {
      params: params
    })
  },
  // 咨讯列表信息
  getInformationInfo (id) {
    return http.get(http.adornUrl(`/admin/information/info/${id}`))
  },
  // 修改咨讯推荐状态
  changeInformationStatus (id) {
    return http.post(http.adornUrl(`/admin/information/recommend/${id}`))
  },
  // 修改咨讯推荐状态
  changeTopStatus (data) {
    return http.post(http.adornUrl(`/admin/information/top`), data)
  },
  // 咨讯保存
  informationAdd (data) {
    return http.post(http.adornUrl(`/admin/information/save`), data)
  },
  // 咨讯修改
  informationEdit (data) {
    return http.put(http.adornUrl(`/admin/information/update`), data)
  },
  // 资讯删除
  deleteInformation (id) {
    return http.delete(http.adornUrl('/admin/information/delete/') + id)
  },
  // 资讯分类列表
  getInformationClassifyList (params) {
    return http.get(http.adornUrl(`/admin/information/classify/page`), {
      params: params
    })
  },
  getInformationClassifyListOption () {
    return http.get(http.adornUrl(`/admin/information/classify/list`))
  },
  // 资讯分类信息
  getInformationClassifyInfo (id) {
    return http.get(http.adornUrl(`/admin/information/classify/info/${id}`))
  },
  // 资讯分类保存
  informationClassifyAdd (data) {
    return http.post(http.adornUrl(`/admin/information/classify/save`), data)
  },
  // 资讯分类编辑
  informationClassifyEdit (data) {
    return http.put(http.adornUrl(`/admin/information/classify/update`), data)
  },
  // 资讯分类删除
  deleteInformationClassify (id) {
    return http.delete(http.adornUrl('/admin/information/classify/delete/') + id)
  },

  // 贡献值明细列表
  getContributionList (params) {
    return http.get(http.adornUrl(`/admin/usergains/userbill/page`), {
      params: params
    })
  },
  // 修改余额
  adjustBalance (data) {
    return http.post(http.adornUrl(`/admin/bill/refillCard/adjustBalance`), data)
  },
  // 获取旗下会员福利区消费总额
  orderEquity (userId) {
    return http.get(http.adornUrl(`/admin/order/equity/${userId}`))
  },
  // 修改积分
  changeIntegral (data) {
    return http.post(http.adornUrl(`/admin/bill/refillCard/adjustIntegral`), data)
  },
  // 购买商品
  buyAreaGoods (data) {
    return http.post(http.adornUrl(`/admin/bill/refillCard/buyGoods`), data)
  },

  /** 获取激活商品    **/
  getAreaFeatureGoods () {
    return http.get(http.adornUrl('/admin/goods/all/areaGoods'), {
    })
  },

  /** 查询用户操作日志列表    **/
  getAccountOperationLogList (param) {
    return http.get(http.adornUrl('/admin/account/operationlog/list'), {
      params: param
    })
  }
}
